]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
volume: Fix overdrive in slider
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 7 Aug 2019 12:55:49 +0000 (14:55 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 7 Aug 2019 16:17:45 +0000 (16:17 +0000)
When setting a maximum value above 1, we currently set a non-existant
maximum_level property instead of the actual 'maximum-value' one.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/670

js/ui/status/volume.js

index 8ab001cd8d5e9a19599675ff02ba76021ea2a046..470e1f7b44aac5d0660c6a16ab63e8aeb1bb2762 100644 (file)
@@ -139,7 +139,7 @@ var StreamSlider = class {
     _amplifySettingsChanged() {
         this._allowAmplified = this._soundSettings.get_boolean(ALLOW_AMPLIFIED_VOLUME_KEY);
 
-        this._slider.maximum_level = this._allowAmplified
+        this._slider.maximum_value = this._allowAmplified
             ? this.getMaxLevel() : 1;
 
         if (this._stream)